home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20041116-20060924 / 000175_jaltman2@nyc.rr.com_Sun Oct 23 14:19:16 2005.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!newsfeed.nyu.edu!newsfeed.cw.net!news-FFM2.ecrc.de!informatik.uni-bremen.de!news.zfn.uni-bremen.de!news-ham1.dfn.de!news-lei1.dfn.de!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!gnilink.net!cyclone.rdc-nyc.rr.com!news-out.nyc.rr.com!news-wrt-01.rdc-nyc.rr.com.POSTED!53ab2750!not-for-mail
  2. From: Jeffrey Altman <jaltman2@nyc.rr.com>
  3. User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915
  4. X-Accept-Language: en-us, en
  5. MIME-Version: 1.0
  6. Newsgroups: comp.protocols.kermit.misc
  7. Subject: Re: passive mode need to ignore IP returned from server
  8. References: <1129659643.312875.320010@g43g2000cwa.googlegroups.com>
  9. In-Reply-To: <1129659643.312875.320010@g43g2000cwa.googlegroups.com>
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. Lines: 47
  13. Message-ID: <pad5f.3500$h25.517@news-wrt-01.rdc-nyc.rr.com>
  14. Date: Tue, 18 Oct 2005 20:46:13 GMT
  15. NNTP-Posting-Host: 68.175.91.105
  16. X-Complaints-To: abuse@rr.com
  17. X-Trace: news-wrt-01.rdc-nyc.rr.com 1129668373 68.175.91.105 (Tue, 18 Oct 2005 16:46:13 EDT)
  18. NNTP-Posting-Date: Tue, 18 Oct 2005 16:46:13 EDT
  19. Organization: Road Runner High Speed Online http://www.rr.com
  20. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:15418
  21.  
  22. LT wrote:
  23. > I am connecting to a server that has 2 IP addresses (external and
  24. > internal LAN).  The server is configured to return the LAN IP.
  25. > When I open a ftp session, I can connect and login to the server.
  26. >     > ftp open 32.97.xxx.xxx 21
  27. > When I switch to passive mode and open a data connection, the server
  28. > returns the LAN IP.
  29. >     > FTP RCVD [227 Entering Passive Mode (172,17,31,25,38,252)]
  30. >       ( IP = 172.17.31.25 , port = 38*256+252 = 9980 )
  31. > Then LAN IP (172.17.31.25) uses a private IP network range and is not
  32. > reachable from the outside world, but all I really need is the port
  33. > number (9980).
  34. > How can I get kermit to use the port number (9980), but continue to use
  35. > the server name/IP that I originally used to start the FTP session.
  36. > I found another FTP client that recognizes that the IP address returned
  37. > from the server is different than the original IP and switches the IP
  38. > back to the correct address. Is there an option
  39. > to do this in kermit?
  40. > Thanks, LT
  41.  
  42. That other FTP client would be broken.   The idea in FTP is that there
  43. can be more than two parties to each file transfer.   It is perfectly
  44. acceptable for the server to report an alternate address to have the
  45. file set to.   In this case, the server should be programmed to send
  46. the correct IP address.  If the server is multi-homed, then the server
  47. should detect the address that is bound to the socket associated with
  48. the command channel.   If the connection is coming through a NAT, the
  49. server should support SOCKS and obtain the correct IP address from the
  50. NAT for the port that was opened.
  51.  
  52. Now, C-Kermit could of course be hacked to behave the same way as the
  53. other client.  The source code is publicly available.  The source file
  54. you want to look at is ckcftp.c
  55.  
  56. Jeffrey Altman
  57.  
  58.  
  59. -- 
  60. -----------------
  61. This e-mail account is not read on a regular basis.
  62. Please send private responses to jaltman at mit dot edu